package com.babble.comment.conversion;

import com.babble.comment.dto.CommentDTO;
import com.babble.comment.entity.Comment;
import com.babble.comment.vo.CommentVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 评论模块实体转换
 *
 * @author wm
 */
@Mapper(componentModel = "spring")
public interface CommentMapper {

	Comment commentDtoToComment(CommentDTO commentDTO);

	CommentVO commentToCommentVo(Comment comment);

	List<CommentVO> listCommentToCommentVo(List<Comment> comments);
}
